package zhoufu.sz.sanxiao_check.inject.components;

import android.app.Activity;
import dagger.Component;
import zhoufu.sz.sanxiao_check.inject.PerActivity;
import zhoufu.sz.sanxiao_check.inject.modules.ActivityModule;

/**
 * Created by hyc on 16/5/5.
 * 为所有的Fragment 提供依赖
 * 单独的activity需要继承本类来做他们 各自的工作.
 * 继承自DataBindingComponent,以和DataBindinggong
 */
@PerActivity
@Component(dependencies = {AppComponent.class},modules = { ActivityModule.class})
public interface ActivityComponent
{

    Activity activity();


}
/**
 * Error:(21, 1) 错误: com.atrue.hyc.myreadapp.inject.components.ActivityComponent scoped with
 * @com.atrue.hyc.myreadapp.inject.PerActivity may not reference bindings with different scopes:
    @Singleton class com.atrue.hyc.myreadapp.navigation.Navigator
 */
